commit: Fix reading xattrs from OstreeRepoFile:s
authorAlexander Larsson <alexl@redhat.com>
Wed, 16 Nov 2016 21:46:45 +0000 (22:46 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 16 Nov 2016 22:30:33 +0000 (22:30 +0000)
commitbd45e7ac19a4030d6dbd276004aa1678494ec74d
treed7c7a2e0329fba6b435cc3ffcc8996a541efb47b
parent814aa9682514f2bc342f05032021774d3f128f17
commit: Fix reading xattrs from OstreeRepoFile:s

When doing commit --tree=ref=XXX while at the same time applying some
form of modifier, ostree dies trying to read the xattrs using the
raw syscalls. We fix this by falling back to ostree_repo_file_get_xattrs()
in this case.

Also adds a testcase for this.

Closes: #577
Approved by: cgwalters
src/libostree/ostree-repo-commit.c
tests/basic-test.sh